package com.yicong.ants.bean.find;



/**
 * @author cchao
 * @version 2019-08-22.
 */

public class HotelBean {
    private String id;
    private String name;
    private String address;
    private String longitude;
    private String latitude;
    private String thumbnail;
    private String desc;
    private double distance;
    private String original_price;
    private String current_price;

    public HotelBean() {
    }

    public String getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public String getAddress() {
        return this.address;
    }

    public String getLongitude() {
        return this.longitude;
    }

    public String getLatitude() {
        return this.latitude;
    }

    public String getThumbnail() {
        return this.thumbnail;
    }

    public String getDesc() {
        return this.desc;
    }

    public double getDistance() {
        return this.distance;
    }

    public String getOriginal_price() {
        return this.original_price;
    }

    public String getCurrent_price() {
        return this.current_price;
    }

    public HotelBean setId(String id) {
        this.id = id;
        return this;
    }

    public HotelBean setName(String name) {
        this.name = name;
        return this;
    }

    public HotelBean setAddress(String address) {
        this.address = address;
        return this;
    }

    public HotelBean setLongitude(String longitude) {
        this.longitude = longitude;
        return this;
    }

    public HotelBean setLatitude(String latitude) {
        this.latitude = latitude;
        return this;
    }

    public HotelBean setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
        return this;
    }

    public HotelBean setDesc(String desc) {
        this.desc = desc;
        return this;
    }

    public HotelBean setDistance(double distance) {
        this.distance = distance;
        return this;
    }

    public HotelBean setOriginal_price(String original_price) {
        this.original_price = original_price;
        return this;
    }

    public HotelBean setCurrent_price(String current_price) {
        this.current_price = current_price;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof HotelBean)) return false;
        final HotelBean other = (HotelBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final Object this$address = this.getAddress();
        final Object other$address = other.getAddress();
        if (this$address == null ? other$address != null : !this$address.equals(other$address))
            return false;
        final Object this$longitude = this.getLongitude();
        final Object other$longitude = other.getLongitude();
        if (this$longitude == null ? other$longitude != null : !this$longitude.equals(other$longitude))
            return false;
        final Object this$latitude = this.getLatitude();
        final Object other$latitude = other.getLatitude();
        if (this$latitude == null ? other$latitude != null : !this$latitude.equals(other$latitude))
            return false;
        final Object this$thumbnail = this.getThumbnail();
        final Object other$thumbnail = other.getThumbnail();
        if (this$thumbnail == null ? other$thumbnail != null : !this$thumbnail.equals(other$thumbnail))
            return false;
        final Object this$desc = this.getDesc();
        final Object other$desc = other.getDesc();
        if (this$desc == null ? other$desc != null : !this$desc.equals(other$desc)) return false;
        if (Double.compare(this.getDistance(), other.getDistance()) != 0) return false;
        final Object this$original_price = this.getOriginal_price();
        final Object other$original_price = other.getOriginal_price();
        if (this$original_price == null ? other$original_price != null : !this$original_price.equals(other$original_price))
            return false;
        final Object this$current_price = this.getCurrent_price();
        final Object other$current_price = other.getCurrent_price();
        if (this$current_price == null ? other$current_price != null : !this$current_price.equals(other$current_price))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof HotelBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * PRIME + ($id == null ? 43 : $id.hashCode());
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final Object $address = this.getAddress();
        result = result * PRIME + ($address == null ? 43 : $address.hashCode());
        final Object $longitude = this.getLongitude();
        result = result * PRIME + ($longitude == null ? 43 : $longitude.hashCode());
        final Object $latitude = this.getLatitude();
        result = result * PRIME + ($latitude == null ? 43 : $latitude.hashCode());
        final Object $thumbnail = this.getThumbnail();
        result = result * PRIME + ($thumbnail == null ? 43 : $thumbnail.hashCode());
        final Object $desc = this.getDesc();
        result = result * PRIME + ($desc == null ? 43 : $desc.hashCode());
        final long $distance = Double.doubleToLongBits(this.getDistance());
        result = result * PRIME + (int) ($distance >>> 32 ^ $distance);
        final Object $original_price = this.getOriginal_price();
        result = result * PRIME + ($original_price == null ? 43 : $original_price.hashCode());
        final Object $current_price = this.getCurrent_price();
        result = result * PRIME + ($current_price == null ? 43 : $current_price.hashCode());
        return result;
    }

    public String toString() {
        return "HotelBean(id=" + this.getId() + ", name=" + this.getName() + ", address=" + this.getAddress() + ", longitude=" + this.getLongitude() + ", latitude=" + this.getLatitude() + ", thumbnail=" + this.getThumbnail() + ", desc=" + this.getDesc() + ", distance=" + this.getDistance() + ", original_price=" + this.getOriginal_price() + ", current_price=" + this.getCurrent_price() + ")";
    }
}
